home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
kh_gdi.zip
/
KH_GDI
/
TRIGON.H
< prev
Wrap
C/C++ Source or Header
|
1996-05-04
|
411b
|
17 lines
#ifndef __TRIGONOMETRY_H_
#define __TRIGONOMETRY_H_
/* This file contains simplified but quick trigonometry.
sin() and cos() returns 1000 * ::sin() or 1000 * ::cos()
*/
struct _export Trigonometry
{
int* sin_table;
Trigonometry();
~Trigonometry() { delete sin_table; }
int sin(int alpha);
int cos(int alpha) { return sin(90 - alpha); }
};
#endif __TRIGONOMETRY_H_